'use strict';
const querystring = require("querystring");

module.exports = (request, response, rfun)=>{
    const pubfun = require("../pubfun");
    let dv = '{}';
    switch(request.GET.pathname)
    {
        case "/test.data":
        {
			dv = {status:0,msg:"test data"};
			break;
        }
		case "/get.data":
		{
			dv = {status:0,msg:"get "+request.GET.query.t};
			break;
		}
    }
    rfun(dv);
}